/*
 * @Author       : 许警
 * @Date         : 2024-07-11
 * @Description  : 开票详情页面数据配置
 */

// 开票状态映射
export const invoiceStatus = {
  1: '待审核',
  2: '已开票',
  3: '已拒绝'
}

// 开票状态颜色映射
export const statusColorObj = {
  1: 'warning',
  2: 'success',
  3: 'error'
}

// 表单字段配置
export const formConfig = {
  labelCol: {
    style: {
      width: '120px',
      fontWeight: 'bold'
    }
  },
  wrapperCol: {
    style: {
      width: 'calc(100% - 120px)'
    }
  }
}

// 页面数据对象
export const dataObj = {
  loading: false,
  formData: {},
  rejectVisible: false,
  rejectForm: {
    reason: ''
  },
  number: null,
  rules: {
    reason: [
      {
        required: true,
        message: '请输入拒绝原因',
        trigger: 'blur'
      }
    ]
  }
}
